package com.dgz.gataway.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: DongGuoZhen
 * @Date: 2024/12/06/16:48
 * @Description:
 */
@Configuration
@RefreshScope // 使配置实时刷新
@ConfigurationProperties(prefix = "security.ignore")  // 指定配置前缀
// 从nacos中读取前缀为security.ignore的配置
public class IgnoreWhiteProperties {

    /**
     * 放⾏⽩名单配置，⽹关不校验此处的⽩名单
     */
    private List<String> whites = new ArrayList<>();
    public List<String> getWhites() {
        return whites;
    }
    public void setWhites(List<String> whites) {
        this.whites = whites;
    }
}
